package com.nix.web.controller.file;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Create by zhangpe0312@qq.com on 2018/2/23.
 */
@Controller
public class AddWordToDatabases {


    /**
     * 上传未见过后然后导入数据库中
     * @return 返回json格式的字符串 反馈给前台 success 或者 错误的具体原因
     *
     */
    @RequestMapping(value = "addWordToDatabase.do" , method = {RequestMethod.GET})
    @ResponseBody
    private Map<String,String> addWordToDatabase(){
        Map<String,String> result = new HashMap<String, String>();
        result.put("message","success");


        return result;
    }

}
